<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .error-msg{
            font-size: 26px;
        }
        .error-redirect{
            font-size: 22px;
        }
        .error-redirect a{
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div>
        <p class="error-msg">{!! $message !!}</p>

        @if($redirect)
            <p class="error-redirect"><a href="{!! $redirect !!}">如果你的浏览器没有自动跳转，请点击此链接</a></p>
            <script type="text/javascript">
                setTimeout(function () {
                    location.href = "{!! $redirect !!}";
                }, 3000);
            </script>
        @else
            <script type="text/javascript">
                setTimeout(function () {
                    history.go(-1);
                }, 3000);
            </script>
            <p  class="error-redirect">[<a href="javascript:history.go(-1);">点击这里返回上一页</a>]</p>
        @endif
    </div>
</body>
</html>